﻿namespace Stickam_Client
{
    [DesignerGenerated]
    public __gc class Form_Login : public Form
    {
        // Methods
        [DebuggerNonUserCode]
        public: Form_Login()
        {
            base->Load += new EventHandler __gc*(this.Form2_Load);
            this->InitializeComponent();
        }

        [DebuggerNonUserCode]
        protected: override void __gc* Dispose(Boolean __gc* disposing)
        {
            try
            {
                if (disposing && (this->components != 0))
                {
                    this->components->Dispose();
                }
            }
            finally
            {
                base->Dispose(disposing);
            }
        }

        private: void __gc* Form2_Load(Object __gc* sender, EventArgs __gc* e)
        {
            this->LoginEmail->Text = MySettingsProperty::Settings->LoginEmail;
            this->LoginPass->Text = MySettingsProperty::Settings->LoginPass;
            this->LoginRemember->Checked = MySettingsProperty::Settings->LoginRemember;
        }

        [DebuggerStepThrough]
        private: void __gc* InitializeComponent()
        {
            ComponentResourceManager __gc* manager = __gc new ComponentResourceManager(__typeof(Form_Login));
            this->Label1 = __gc new Label();
            this->LoginEmail = __gc new TextBox();
            this->Label2 = __gc new Label();
            this->LoginPass = __gc new MaskedTextBox();
            this->Login = __gc new Button();
            this->LoginRemember = __gc new CheckBox();
            this->StatusStrip1 = __gc new StatusStrip();
            this->ToolStripStatusLabel1 = __gc new ToolStripStatusLabel();
            this->StatusStrip1->SuspendLayout();
            this->SuspendLayout();
            this->Label1->AutoSize = true;
            Point __gc* point = (0, 4);
            this->Label1->Location = point;
            this->Label1->Name = S"Label1";
            Size __gc* size = (0x27, 13);
            this->Label1->Size = size;
            this->Label1->TabIndex = 0;
            this->Label1->Text = S"E-Mail:";
            point = (0x24, 1);
            this->LoginEmail->Location = point;
            this->LoginEmail->Name = S"LoginEmail";
            size = (0x9d, 20);
            this->LoginEmail->Size = size;
            this->LoginEmail->TabIndex = 1;
            this->Label2->AutoSize = true;
            point = (0, 0x1b);
            this->Label2->Location = point;
            this->Label2->Name = S"Label2";
            size = (0x21, 13);
            this->Label2->Size = size;
            this->Label2->TabIndex = 2;
            this->Label2->Text = S"Pass:";
            point = (0x24, 0x16);
            this->LoginPass->Location = point;
            this->LoginPass->Name = S"LoginPass";
            this->LoginPass->PasswordChar = '*';
            size = (0x9d, 20);
            this->LoginPass->Size = size;
            this->LoginPass->TabIndex = 3;
            this->Login->FlatStyle = FlatStyle::Popup;
            this->Login->Font = __gc new Font(S"Microsoft Sans Serif", 6.75, FontStyle::Regular, GraphicsUnit::Point, 0);
            point = (0x71, 0x2b);
            this->Login->Location = point;
            this->Login->Name = S"Login";
            size = (80, 0x12);
            this->Login->Size = size;
            this->Login->TabIndex = 4;
            this->Login->Text = S"LOGIN";
            this->Login->UseCompatibleTextRendering = true;
            this->Login->UseVisualStyleBackColor = true;
            this->LoginRemember->AutoSize = true;
            this->LoginRemember->Checked = true;
            this->LoginRemember->CheckState = CheckState::Checked;
            point = (5, 0x2c);
            this->LoginRemember->Location = point;
            this->LoginRemember->Name = S"LoginRemember";
            size = (0x67, 0x11);
            this->LoginRemember->Size = size;
            this->LoginRemember->TabIndex = 5;
            this->LoginRemember->Text = S"Remember Pass";
            this->LoginRemember->UseVisualStyleBackColor = true;
            this->StatusStrip1->Items->AddRange(__gc new ToolStripItem __gc*[1] {
                this->ToolStripStatusLabel1});
            point = (0, 0x3e);
            this->StatusStrip1->Location = point;
            this->StatusStrip1->Name = S"StatusStrip1";
            size = (0xc2, 0x16);
            this->StatusStrip1->Size = size;
            this->StatusStrip1->TabIndex = 6;
            this->StatusStrip1->Text = S"StatusStrip1";
            this->ToolStripStatusLabel1->Name = S"ToolStripStatusLabel1";
            size = (160, 0x11);
            this->ToolStripStatusLabel1->Size = size;
            this->ToolStripStatusLabel1->Text = S"Note: Account must be verified.";
            SizeF __gc* ef = (6, 13);
            this->AutoScaleDimensions = ef;
            this->AutoScaleMode = AutoScaleMode::Font;
            size = (0xc2, 0x54);
            this->ClientSize = size;
            this->Controls->Add(this->StatusStrip1);
            this->Controls->Add(this->LoginRemember);
            this->Controls->Add(this->Login);
            this->Controls->Add(this->LoginPass);
            this->Controls->Add(this->Label2);
            this->Controls->Add(this->LoginEmail);
            this->Controls->Add(this->Label1);
            this->FormBorderStyle = FormBorderStyle::FixedDialog;
            this->Icon = *static_cast<__box Icon*>(manager->GetObject(S"$this.Icon"));
            this->MaximizeBox = false;
            this->Name = S"Form_Login";
            this->StartPosition = FormStartPosition::Manual;
            this->Text = S"Stickam Login";
            this->StatusStrip1->ResumeLayout(false);
            this->StatusStrip1->PerformLayout();
            this->ResumeLayout(false);
            this->PerformLayout();
        }

        private: void __gc* Login_Click(Object __gc* sender, EventArgs __gc* e)
        {
            MySettingsProperty::Settings->LoginEmail = this->LoginEmail->Text;
            MySettingsProperty::Settings->LoginRemember = this->LoginRemember->Checked;
            if (this->LoginRemember->Checked)
            {
                MySettingsProperty::Settings->LoginPass = this->LoginPass->Text;
            }
            else
            {
                MySettingsProperty::Settings->LoginPass = S"";
            }
            this->FormParent->doLogin(this->LoginEmail->Text, this->LoginPass->Text);
            this->Close();
        }


        // Properties
        [DebuggerNonUserCode]
        public private: __property virtual Label __gc* get_Label1()
        {
            return this->_Label1;
        }
        [MethodImpl(MethodImplOptions::Synchronized), DebuggerNonUserCode]
        public private: __property virtual void __gc* set_Label1(Label __gc* WithEventsValue)
        {
            this->_Label1 = WithEventsValue;
        }

        [DebuggerNonUserCode]
        public private: __property virtual Label __gc* get_Label2()
        {
            return this->_Label2;
        }
        [MethodImpl(MethodImplOptions::Synchronized), DebuggerNonUserCode]
        public private: __property virtual void __gc* set_Label2(Label __gc* WithEventsValue)
        {
            this->_Label2 = WithEventsValue;
        }

        [DebuggerNonUserCode]
        public private: __property virtual Button __gc* get_Login()
        {
            return this->_Login;
        }
        [MethodImpl(MethodImplOptions::Synchronized), DebuggerNonUserCode]
        public private: __property virtual void __gc* set_Login(Button __gc* WithEventsValue)
        {
            EventHandler __gc* handler = new EventHandler __gc*(this.Login_Click);
            if (this->_Login != 0)
            {
                this->_Login->Click -= handler;
            }
            this->_Login = WithEventsValue;
            if (this->_Login != 0)
            {
                this->_Login->Click += handler;
            }
        }

        [DebuggerNonUserCode]
        public private: __property virtual TextBox __gc* get_LoginEmail()
        {
            return this->_LoginEmail;
        }
        [MethodImpl(MethodImplOptions::Synchronized), DebuggerNonUserCode]
        public private: __property virtual void __gc* set_LoginEmail(TextBox __gc* WithEventsValue)
        {
            this->_LoginEmail = WithEventsValue;
        }

        [DebuggerNonUserCode]
        public private: __property virtual MaskedTextBox __gc* get_LoginPass()
        {
            return this->_LoginPass;
        }
        [MethodImpl(MethodImplOptions::Synchronized), DebuggerNonUserCode]
        public private: __property virtual void __gc* set_LoginPass(MaskedTextBox __gc* WithEventsValue)
        {
            this->_LoginPass = WithEventsValue;
        }

        [DebuggerNonUserCode]
        public private: __property virtual CheckBox __gc* get_LoginRemember()
        {
            return this->_LoginRemember;
        }
        [MethodImpl(MethodImplOptions::Synchronized), DebuggerNonUserCode]
        public private: __property virtual void __gc* set_LoginRemember(CheckBox __gc* WithEventsValue)
        {
            this->_LoginRemember = WithEventsValue;
        }

        [DebuggerNonUserCode]
        public private: __property virtual StatusStrip __gc* get_StatusStrip1()
        {
            return this->_StatusStrip1;
        }
        [MethodImpl(MethodImplOptions::Synchronized), DebuggerNonUserCode]
        public private: __property virtual void __gc* set_StatusStrip1(StatusStrip __gc* WithEventsValue)
        {
            this->_StatusStrip1 = WithEventsValue;
        }

        [DebuggerNonUserCode]
        public private: __property virtual ToolStripStatusLabel __gc* get_ToolStripStatusLabel1()
        {
            return this->_ToolStripStatusLabel1;
        }
        [MethodImpl(MethodImplOptions::Synchronized), DebuggerNonUserCode]
        public private: __property virtual void __gc* set_ToolStripStatusLabel1(ToolStripStatusLabel __gc* WithEventsValue)
        {
            this->_ToolStripStatusLabel1 = WithEventsValue;
        }


        // Fields
        [AccessedThroughProperty(S"Label1")]
        private: Label __gc* _Label1;
        [AccessedThroughProperty(S"Label2")]
        private: Label __gc* _Label2;
        [AccessedThroughProperty(S"Login")]
        private: Button __gc* _Login;
        [AccessedThroughProperty(S"LoginEmail")]
        private: TextBox __gc* _LoginEmail;
        [AccessedThroughProperty(S"LoginPass")]
        private: MaskedTextBox __gc* _LoginPass;
        [AccessedThroughProperty(S"LoginRemember")]
        private: CheckBox __gc* _LoginRemember;
        [AccessedThroughProperty(S"StatusStrip1")]
        private: StatusStrip __gc* _StatusStrip1;
        [AccessedThroughProperty(S"ToolStripStatusLabel1")]
        private: ToolStripStatusLabel __gc* _ToolStripStatusLabel1;
        private: IContainer __gc* components;
        public: Form1 __gc* FormParent;
    };
}

